/*******************************************************************************
 * Copyright (C) 2013 Jeremy Brodt and Kevin Gillespie
 * Description: Task Timer
 *         $Id: tick.h 25 2014-04-13 22:55:26Z brodtj1212@gmail.com $
 *******************************************************************************
 */

#ifndef _TICK_H_
#define _TICK_H_

/***** Global Data *****/
extern volatile int flag_25ms;
extern volatile int flag_50ms;
extern volatile int flag_75ms;
extern volatile int flag_100ms;
extern volatile int flag_200ms;
extern volatile int flag_400ms;
extern volatile int flag_alarm;
extern void (*tick_callback)(void);

/***** Function Prototypes *****/
void tick_init(void);
unsigned int tick_gettime(void);
void tick_alarm_set(unsigned int ms, void (*func)(void));
void tick_alarm_clr(void);

#endif /* _TICK_H_ */
